﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Domain.Repositories;

namespace ThridGroup.ERP.WarehouseManagement
{
    /// <summary>
    /// 供应商退货接口
    /// </summary>
    public interface ISupplierReturnsServices
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="supplierReturns"></param>
        /// <returns></returns>
        Task<int> AddSupplierReturns(SupplierReturnsDTO supplierReturns);
        /// <summary>
        /// 列表分页显示
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <param name="returnName"></param>
        /// <returns></returns>
        Task<List<SupplierReturnsDTO>> ShowSupplierReturns(int pageIndex = 1, int pageSize = 10, string? returnName = "");
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task DelSupplierReturns(List<int> ids);
        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<SupplierReturnsDTO> GetSupplierReturns(int id);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="supplierReturns"></param>
        /// <returns></returns>
        Task<int> UpdateSupplierReturns(SupplierReturnsDTO supplierReturns);

    }
}
